import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {SocArticleComponent} from './soc-article.component';

const routes: Routes = [
    {path: '', component: SocArticleComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-soc-article/add-soc-article.module#AddSocArticleModule'},
            {path: 'list', loadChildren: './list-soc-article/list-soc-article.module#ListSocArticleModule'},
            {path: 'modify', loadChildren: './modify-soc-article/modify-soc-article.module#ModifySocArticleModule'},
            {path: 'report', loadChildren: './report-soc-article/report-soc-article.module#ReportSocArticleModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SocArticleRoutingModule {
}
